package edu.chl.dat076.datesite.ejbs;

import edu.chl.dat076.datesite.entities.PartnerCriteria;
import edu.chl.dat076.datesite.entities.SiteUser;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Christoffer
 * @author Mikey
 */
@Local
public interface UserEJBLocal {
	void addFavorite(SiteUser user, SiteUser favorite);
	boolean createUser(SiteUser user);
	SiteUser getUser(Long id);
	SiteUser getUser(String username);
	void editUser(SiteUser user) throws NonexistentEntityException;
	boolean deleteUser(Long id);
	boolean deleteUser(String user);
	boolean okLogin(String username, String password);
	boolean usernameTaken(String username);
	List<SiteUser> searchUsers(String username, PartnerCriteria pc);
	List<SiteUser> getAllUsers();
}


